#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2025/3/26 10:03:49
# @File           : crud.py
# @IDE            : PyCharm
# @desc           : 辅料需求 - 增删改查

from sqlalchemy.ext.asyncio import AsyncSession
from core.crud import DalBase
from . import models, schemas


class TaskNeedDal(DalBase):
    def __init__(self, db: AsyncSession):
        super(TaskNeedDal, self).__init__()
        self.db = db
        self.model = models.DCTaskNeed
        self.schema = schemas.TaskNeedSimpleOut
